package animator.phantom.renderer.plugin;

import animator.phantom.plugin.*;
import animator.phantom.renderer.param.*;
import animator.phantom.paramedit.*;
import giotto2D.filters.merge.AlphaToImage;
import java.awt.image.*;
import java.awt.geom.*;
import java.awt.*;
import java.util.*;

public class AlphaToImagePlugin extends PhantomPlugin
{
	public AlphaToImagePlugin()
	{
		initPlugin( FILTER, SINGLE_INPUT );
	}

	public void buildDataModel()
	{
		setName( "AlphaToImage" );
	}

	public void buildEditPanel()
	{
		addEditor( new NoParamsPanel("AlphaToImage") );
	}

	public void doImageRendering( int frame )
	{
		BufferedImage renderedImage = getFlowImage();
		AlphaToImage.filter( renderedImage, renderedImage );
		sendFilteredImage( renderedImage, frame );
	}

}//end class
